<?php 
	$auth = new AuthModel();
	$user_type = $auth->getUserInfo('type');	
?>

<section class="grid_8" style="margin-left: 5%;width:90%"　id="winzard-wrapper">
	<div class="block-border"><div class="block-content">
		<h1>会議室予約</h1>
		
		<div class="block-controls">
			<ul class="controls-buttons">
			</ul>
		</div>
		
		<ol class="wizard-steps">
			<li>
				<a href="#">
					<span class="number">1<span class="status-ok"></span></span>
					日と席の数を選択
				</a>
			</li>
			<li>
				<a href="#">
					<span class="number">2<span class="status-ok"></span></span>
					予約時間を選択
				</a>
			</li>
			<li>
				<span class="number">3<span class="status-ok"></span></span>
				確認
			</li>
		</ol>
		
		<span class="number bigger">4</span>
		<small>会議室予約</small>
		<h2 class="bigger">予約結果</h2>
			<form class="form" id="add_form" method="post" action="/user/order/order">
			<fieldset class="grey-bg inline-label">
				<p>
					<h3>
						<?php if($this->result):?>
							予約しました。	
						<?php else :?>
							予約できません。
						<?php endif;?>
					</h3>
				</p>
			</fieldset>
			<fieldset class="grey-bg no-margin">
				<p>
					<button type="button" id="redirect_btn">マイページに戻します</button>
				</p>
				<?php echo $this->formHidden("callback", $user_type == NORMAL_USER ? "/user" : "/admin")?>
			</fieldset>
		</form>
	</div>
	</div>
</section>

<script type="text/javascript">
	$(document).ready(function(){
		$("#redirect_btn").click(function(){
			window.location = $("#callback").val();
		});

		$("html, body").animate({scrollTop: $("#status-bar").offset().top}, "slow");
	});
</script>